package com.dfbz.demo;

import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;

/**
 * @author lscl
 * @version 1.0
 * @intro:
 */
public class Demo04_LinkedList_List体系 {

    public static void main(String[] args) {

        List<String> list=new LinkedList<>();

        list.add("厦门");
        list.add("福州");
        list.add("莆田");

        System.out.println(list);

        String city = list.get(1);
        System.out.println(city);
    }
}
